package br.com.dao;

import javax.persistence.EntityManager;

import br.com.connection.Connection;
import br.com.model.Usuario;

public class UsuarioDao {
	
	public static void SalvarUsuario(Usuario usuario){
		
		EntityManager manager = Connection.criarConexao();
		manager.getTransaction().begin();
		manager.persist(usuario);
		manager.getTransaction().commit();
		manager.close();
		
	}
	
}
